package com.codefox.mapper;

import java.util.List;
import java.util.Map;

import com.codefox.entity.TbUser;

public interface TbUserMapper {
    int deleteById(Integer userId);

    int insert(TbUser record);

    int insertSelective(TbUser record);

    TbUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbUser record);

    int updateByPrimaryKey(TbUser record);
    
    TbUser selectByName(String username);
    
    List<TbUser> userFind();

	int getCount();
	
	
	/**
	 * 获取分页数据
	 * @param map 包含limit语句的起始数与包含数 
	 * @return list集合
	 */
	List<TbUser> search(Map map);
    
}